#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""  
@Project : pythonProject
@File : dell.py
@Author : 万能小魏
@Time : 2024/8/16 14:32  
@脚本说明 : 

"""
import woniu.dataList as dataList
def delById():
    selectID = input("请输出您要删除的ID:\n")
    tempList = list(filter(lambda u: u['id'] == selectID, dataList.userList))
    if len(tempList) == 0:
        print("未查询到该ID!")
    else:
        userList = list(filter(lambda u: u['id'] != selectID, dataList.userList))
        print("该ID已删除!")